CC = g++
CFLAGS = -pg
GL = -lGL -lGLU -lglut
SRC = ./sources/
OBJ = fstats.o parse.o proceed.o globals.o graphics.o

all: footballforecast

footballforecast: $(OBJ)
	$(CC) $(CFLAGS) -o football_forecast $(OBJ) $(GL)
parse.o: $(SRC)parse.cpp
	$(CC) -c $(SRC)parse.cpp $(CFLAGS)
fstats.o: $(SRC)fstats.cpp
	$(CC) -c $(SRC)fstats.cpp $(CFLAGS)
proceed.o: $(SRC)proceed.cpp
	$(CC) -c $(SRC)proceed.cpp $(CFLAGS)
globals.o: $(SRC)globals.cpp
	$(CC) -c $(SRC)globals.cpp $(CFLAGS)
graphics.o: $(SRC)graphics.cpp
	$(CC) -c $(SRC)graphics.cpp $(CFLAGS)
clean: 
	rm -f *.o *out *.gcov *.gcno *.gcda
	rm -f football_forecast 

 
